<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.7.0" />

	<title>Class AMFBaseSerializer | nort</title>

	<script type="text/javascript" src="resources/combined.js?1481722677"></script>
	<script type="text/javascript" src="elementlist.js?1094816827"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?1567499433" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-App.html">App<span></span></a>
						<ul>
				<li><a href="package-App.Saas.html">Saas</a>
						</li>
				<li><a href="package-App.saas.html">saas</a>
						</li>
				<li><a href="package-App.SaaS.html">SaaS<span></span></a>
						<ul>
				<li><a href="package-App.saas.Logic.html">Logic</a>
						</li>
				<li><a href="package-App.SaaS.SaaS.html">SaaS</a>
						</li>
				<li><a href="package-App.Saas.Tables.html">Tables</a>
						</li>
				<li><a href="package-App.Saas.Vo.html">Vo</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-aqua.html">aqua<span></span></a>
						<ul>
				<li><a href="package-aqua.tools.html">tools<span></span></a>
						<ul>
				<li><a href="package-aqua.tools.Monitor.html">Monitor</a>
						</li>
							</ul></li></ul></li>
				<li class="active"><a href="package-flashservices.html">flashservices<span></span></a>
						<ul>
				<li><a href="package-flashservices.adapters.html">adapters</a>
						</li>
				<li><a href="package-flashservices.debug.html">debug</a>
						</li>
				<li><a href="package-flashservices.exception.html">exception</a>
						</li>
				<li><a href="package-flashservices.filters.html">filters</a>
						</li>
				<li class="active"><a href="package-flashservices.io.html">io</a>
						</li>
				<li><a href="package-flashservices.sql.html">sql</a>
						</li>
				<li><a href="package-flashservices.util.html">util</a>
						</li>
							</ul></li>
				<li><a href="package-Mekayotl.html">Mekayotl<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.core.html">core</a>
						</li>
				<li><a href="package-Mekayotl.database.html">database<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.database.dal.html">dal</a>
						</li>
				<li><a href="package-Mekayotl.database.mysql.html">mysql</a>
						</li>
				<li><a href="package-Mekayotl.database.sqlite.html">sqlite</a>
						</li>
							</ul></li>
				<li><a href="package-Mekayotl.tools.html">tools<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.tools.render.html">render<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.tools.render.html.html">html</a>
						</li>
							</ul></li>
				<li><a href="package-Mekayotl.tools.renders.html">renders</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-None.html">None</a>
						</li>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li><a href="package-PHPMailer.html">PHPMailer</a>
						</li>
				<li><a href="package-Services.html">Services<span></span></a>
						<ul>
				<li><a href="package-Services.JSON.html">JSON</a>
						</li>
							</ul></li>
				<li><a href="package-Swift.html">Swift<span></span></a>
						<ul>
				<li><a href="package-Swift.ByteStream.html">ByteStream</a>
						</li>
				<li><a href="package-Swift.CharacterStream.html">CharacterStream</a>
						</li>
				<li><a href="package-Swift.Encoder.html">Encoder</a>
						</li>
				<li><a href="package-Swift.Events.html">Events</a>
						</li>
				<li><a href="package-Swift.KeyCache.html">KeyCache</a>
						</li>
				<li><a href="package-Swift.Mailer.html">Mailer</a>
						</li>
				<li><a href="package-Swift.Mime.html">Mime</a>
						</li>
				<li><a href="package-Swift.Plugins.html">Plugins</a>
						</li>
				<li><a href="package-Swift.Transport.html">Transport</a>
						</li>
							</ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-AMFBaseDeserializer.html">AMFBaseDeserializer</a></li>
				<li class="active"><a href="class-AMFBaseSerializer.html">AMFBaseSerializer</a></li>
				<li><a href="class-AMFSerializer.html">AMFSerializer</a></li>
				<li><a href="class-CharsetHandler.html">CharsetHandler</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-flashservices.io.html" title="Summary of flashservices\io"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class AMFBaseSerializer</h1>


	<div class="description">
	
<p>AMFSerializer manages the job of translating PHP objects into the
actionscript equivalent via amf. The main method of the serializer is the
serialize method which takes and AMFObject as it's argument and builds the
resulting amf body.</p>

	</div>



	<div>
		<h4>Direct known subclasses</h4>
			<a href="class-AMFSerializer.html">AMFSerializer</a>
	</div>






	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-flashservices.html">flashservices</a>\<a href="package-flashservices.io.html">io</a><br />

				<b>Copyright:</b>
				(c) 2003 amfphp.org<br />
				<b>License:</b>
				<a href="http://opensource.org/licenses/gpl-license.php">GNU Public License</a><br />
				<b>Version:</b>
				$Id: AMFSerializer.php,v 1.39 2005/07/22 10:58:11 pmineault Exp $<br />
		<b>Located at</b> <a href="source-class-AMFBaseSerializer.html#4" title="Go to source code">lib/php/externals/amfphp/core/amf/io/AMFBaseSerializer.php</a><br />
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="AMFBaseSerializer" id="_AMFBaseSerializer">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_AMFBaseSerializer">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#32" title="Go to source code">AMFBaseSerializer</a>( )</code>

		<div class="description short">
			
<p>AMFSerializer is the constructor function. You must pass the method an
AMFOutputStream as the single argument.</p>

		</div>

		<div class="description detailed hidden">
			
<p>AMFSerializer is the constructor function. You must pass the method an
AMFOutputStream as the single argument.</p>








		</div>
		</div></td>
	</tr>
	<tr data-order="serialize" id="_serialize">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_serialize">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#51" title="Go to source code">serialize</a>( <span>object <var>&amp; $amfout</var></span> )</code>

		<div class="description short">
			
<p>serialize is the run method of the class. When serialize is called the
AMFObject passed in is read and converted into the amf binary representing the
PHP data represented.</p>

		</div>

		<div class="description detailed hidden">
			
<p>serialize is the run method of the class. When serialize is called the
AMFObject passed in is read and converted into the amf binary representing the
PHP data represented.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$amfout</var></dt>
					<dd><code>object</code><br>$d the AMFObject to serialize</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="encodeCallback" id="_encodeCallback">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_encodeCallback">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#115" title="Go to source code">encodeCallback</a>( <span> <var>$value</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="cleanXml" id="_cleanXml">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_cleanXml">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#194" title="Go to source code">cleanXml</a>( <span> <var>$d</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="writeByte" id="_writeByte">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_writeByte">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#203" title="Go to source code">writeByte</a>( <span>integer <var>$b</var></span> )</code>

		<div class="description short">
			
<p>writeByte writes a singe byte to the output stream 0-255 range</p>

		</div>

		<div class="description detailed hidden">
			
<p>writeByte writes a singe byte to the output stream 0-255 range</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$b</var></dt>
					<dd><code>integer</code><br> An int that can be converted to a byte</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="writeInt" id="_writeInt">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_writeInt">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#214" title="Go to source code">writeInt</a>( <span>integer <var>$n</var></span> )</code>

		<div class="description short">
			
<p>writeInt takes an int and writes it as 2 bytes to the output stream 0-65535
range</p>

		</div>

		<div class="description detailed hidden">
			
<p>writeInt takes an int and writes it as 2 bytes to the output stream 0-65535
range</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$n</var></dt>
					<dd><code>integer</code><br> An integer to convert to a 2 byte binary string</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="writeLong" id="_writeLong">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_writeLong">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#225" title="Go to source code">writeLong</a>( <span>long <var>$l</var></span> )</code>

		<div class="description short">
			
<p>writeLong takes an int, float or double and converts it to a 4 byte binary
string and adds it to the output buffer</p>

		</div>

		<div class="description detailed hidden">
			
<p>writeLong takes an int, float or double and converts it to a 4 byte binary
string and adds it to the output buffer</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$l</var></dt>
					<dd><code>long</code><br> A long to convert to a 4 byte binary string</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="writeUTF" id="_writeUTF">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_writeUTF">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#236" title="Go to source code">writeUTF</a>( <span>string <var>$s</var></span> )</code>

		<div class="description short">
			
<p>writeUTF takes and input string, writes the length as an int and then appends
the string to the output buffer</p>

		</div>

		<div class="description detailed hidden">
			
<p>writeUTF takes and input string, writes the length as an int and then appends
the string to the output buffer</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$s</var></dt>
					<dd><code>string</code><br> The string less than 65535 characters to add to the stream</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="writeBinary" id="_writeBinary">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_writeBinary">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#250" title="Go to source code">writeBinary</a>( <span>string <var>$s</var></span> )</code>

		<div class="description short">
			
<p>writeBinary takes and input string, writes the length as an int and then
appends the string to the output buffer</p>

		</div>

		<div class="description detailed hidden">
			
<p>writeBinary takes and input string, writes the length as an int and then
appends the string to the output buffer</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$s</var></dt>
					<dd><code>string</code><br> The string less than 65535 characters to add to the stream</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="writeLongUTF" id="_writeLongUTF">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_writeLongUTF">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#261" title="Go to source code">writeLongUTF</a>( <span>string <var>$s</var></span> )</code>

		<div class="description short">
			
<p>writeLongUTF will write a string longer than 65535 characters. It works
exactly as writeUTF does except uses a long for the length flag.</p>

		</div>

		<div class="description detailed hidden">
			
<p>writeLongUTF will write a string longer than 65535 characters. It works
exactly as writeUTF does except uses a long for the length flag.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$s</var></dt>
					<dd><code>string</code><br> A string to add to the byte stream</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="writeDouble" id="_writeDouble">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_writeDouble">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#276" title="Go to source code">writeDouble</a>( <span>float <var>$d</var></span> )</code>

		<div class="description short">
			
<p>writeDouble takes a float as the input and writes it to the output stream.
Then if the system is big-endian, it reverses the bytes order because all
doubles passed via remoting are passed little-endian.</p>

		</div>

		<div class="description detailed hidden">
			
<p>writeDouble takes a float as the input and writes it to the output stream.
Then if the system is big-endian, it reverses the bytes order because all
doubles passed via remoting are passed little-endian.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$d</var></dt>
					<dd><code>float</code><br> The double to add to the output buffer</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="sanitizeType" id="_sanitizeType">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_sanitizeType">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#295" title="Go to source code">sanitizeType</a>( <span> <var>$type</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="getClassName" id="_getClassName">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getClassName">#</a>
		<code><a href="source-class-AMFBaseSerializer.html#322" title="Go to source code">getClassName</a>( <span> <var>&amp; $d</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	</table>







	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="amf0StoredObjects" id="$amf0StoredObjects">

		<td class="attributes"><code>
			public 
			array
		</code></td>

		<td class="name">
				<a href="source-class-AMFBaseSerializer.html#20" title="Go to source code"><var>$amf0StoredObjects</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
		<td class="description"><div>
			<a href="#$amf0StoredObjects" class="anchor">#</a>

			<div class="description short">
				
<p>Classes that are serialized as recordsets</p>

			</div>

			<div class="description detailed hidden">
				
<p>Classes that are serialized as recordsets</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="storedObjects" id="$storedObjects">

		<td class="attributes"><code>
			public 
			array
		</code></td>

		<td class="name">
				<a href="source-class-AMFBaseSerializer.html#24" title="Go to source code"><var>$storedObjects</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
		<td class="description"><div>
			<a href="#$storedObjects" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="storedDefinitions" id="$storedDefinitions">

		<td class="attributes"><code>
			public 
			integer
		</code></td>

		<td class="name">
				<a href="source-class-AMFBaseSerializer.html#25" title="Go to source code"><var>$storedDefinitions</var></a>
		</td>
		<td class="value"><code><span class="php-num">0</span></code></td>
		<td class="description"><div>
			<a href="#$storedDefinitions" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="storedStrings" id="$storedStrings">

		<td class="attributes"><code>
			public 
			array
		</code></td>

		<td class="name">
				<a href="source-class-AMFBaseSerializer.html#26" title="Go to source code"><var>$storedStrings</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
		<td class="description"><div>
			<a href="#$storedStrings" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="outBuffer" id="$outBuffer">

		<td class="attributes"><code>
			public 
			
		</code></td>

		<td class="name">
				<a href="source-class-AMFBaseSerializer.html#27" title="Go to source code"><var>$outBuffer</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$outBuffer" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="encounteredStrings" id="$encounteredStrings">

		<td class="attributes"><code>
			public 
			integer
		</code></td>

		<td class="name">
				<a href="source-class-AMFBaseSerializer.html#28" title="Go to source code"><var>$encounteredStrings</var></a>
		</td>
		<td class="value"><code><span class="php-num">0</span></code></td>
		<td class="description"><div>
			<a href="#$encounteredStrings" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="native" id="$native">

		<td class="attributes"><code>
			public 
			boolean
		</code></td>

		<td class="name">
				<a href="source-class-AMFBaseSerializer.html#30" title="Go to source code"><var>$native</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">FALSE</span></code></td>
		<td class="description"><div>
			<a href="#$native" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	</table>



</div>

	<div id="footer">
		nort API documentation generated by <a href="http://apigen.org">ApiGen 2.7.0</a>
	</div>
</div>
</div>
</body>
</html>
